package com.example.aboutwork;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.List;

@Data
public class BitCompute {


    private List<String> strs;


    public static void main(String[] args) {
        BitCompute bitCompute = new BitCompute();
        List<String> strs = Lists.newArrayList();
        bitCompute.setStrs(strs);
        System.err.println(bitCompute.getStrs());
        strs.add("1");
        strs.add("2");
        strs.add("3");
        System.err.println(bitCompute.getStrs());

        int num = 2439;
        int rightBitMove = num >> 1;

        System.err.println(rightBitMove);

        System.err.println(num);

        System.err.println(Long.valueOf(1L << 63));

        System.err.println(Long.toBinaryString(1L << 63));

        int num1 = 38190234;

        System.err.println(Integer.toBinaryString(num1));

        long x = (long) num1 << 16;
//        System.err.println(x);
        System.err.println(Long.toBinaryString(x));

        x = x | num1;

        System.err.println(Long.toBinaryString(x));


        System.err.println(Integer.toBinaryString(num1>>16));



        System.err.println(Integer.toBinaryString(-num1>>>16));


    }
}
